#ifndef _PIN_DEF_H
#define _PIN_DEF_H

// pins
#define BUTTON_0 0
#define BUTTON_1 1
#define DIR2 2
#define STEP2 3
#define TMC2209_TX 4
#define TMC2209_RX 5
#define DIAG2 6
#define DIR3 7
#define STEP3 8
#define DIAG3 9
#define DIR1 10
#define STEP1 11
#define DIAG1 12
#define DIR0 13
#define STEP0 14
#define DIAG0 15
#define ITR9606_0 16
#define ITR9606_1 17
#define ENN 18
#define LED 19
#define CAMERA_TX 28
#define CAMERA_RX 29

#define TMC2209_UART uart1
#define CAMERA_UART uart0

// error code
#define ERROR_TMC2209_CONFIG_0 0
#define ERROR_TMC2209_CONFIG_1 1
#define ERROR_TMC2209_CONFIG_2 2
#define ERROR_TMC2209_CONFIG_3 3
#define ERROR_ZERO_POINT 4

#endif
